package com.nan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nan.model.Class;
import com.nan.model.Student;
import com.nan.service.ClassService;
import com.nan.mapper.ClassMapper;
import com.nan.vo.TeamVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.swing.*;
import java.util.ArrayList;
import java.util.List;

/**
 *
 */
@Service
public class ClassServiceImpl extends ServiceImpl<ClassMapper, Class>
implements ClassService{

    @Autowired
    private ClassMapper classMapper;

    @Override
    public List<Student> queryStudentByClassId(Long id) {
        return classMapper.selectStudentByClassId(id);
    }

    @Override
    public Class getClassWithTeams(Long id) {
        return classMapper.selectClassWithTeams(id);
    }

    @Override
    public List<Class> getClassList() {
        return classMapper.selectClassList();
    }
}




